#include "client.h"
#include <string>
#include <iostream>

int main()
{
    // Client
    Client client;

    // Connect to server
    client.Connect();

    // Send this string to server
    std::string str;
    while (std::cin >> str)
    {
        if (str == "close")
            client.Close();
        else
            client.Send(str);
    }

    return 0;
}